package web;

import general.*;
import dao.BaseDAO;

/**
 *
 * @author Alejandro
 */
public class Context implements IContext {
    private HtmlOutput op;
    private ParamStorage pp;
    private BaseDAO dao;

    public Context(OutputProvider op, ParamStorage pp) {
        this.op = (HtmlOutput) op;
        this.pp = pp;
        dao = null;
    }

    public void setDAO(BaseDAO dao) {
        this.dao = dao;
    }

    public BaseDAO getDAO() {
        return dao;
    }

    public HtmlOutput getOutputProvider() {
        return op;
    }

    public ParamStorage getParamProcessor() {
        return pp;
    }
}
